package com.whmall.service.crm.module.company.service.impl;

import com.whmall.component.service.AbstractDbService;
import com.whmall.service.crm.entity.dto.company.CompanyNotTradableDTO;
import com.whmall.service.crm.entity.dto.company.CompanyNotTradableReqDTO;
import com.whmall.service.crm.module.company.dao.CompanyNotTradableMapper;
import com.whmall.service.crm.module.company.entity.CompanyNotTradableDO;
import com.whmall.service.crm.module.company.service.CompanyNotTradableService;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class CompanyNotTradableServiceImpl extends AbstractDbService<CompanyNotTradableMapper, CompanyNotTradableDO> implements CompanyNotTradableService {

    @Override
    public List<CompanyNotTradableDTO> companyNotTradableList(CompanyNotTradableReqDTO reqDTO) {
        return do2Dto(baseMapper.companyNotTradableList(reqDTO), CompanyNotTradableDTO.class);
    }

    @Override
    public int delIneffective(Date date) {
        return baseMapper.delIneffective(date);
    }
}
